import Cookies from 'js-cookie'

const TokenName = 'vueAdmin-token'

export function getToken() {
  return Cookies.get(TokenName)
}

export function setToken(token, options = {}) {
  return Cookies.set(TokenName, token, options)
}

export function removeToken() {
  return Cookies.remove(TokenName)
}
